package org.jeecg.modules.jxc.baseData.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: RenFeng
 * @version: 1.0
 * @create: 2021-12-21 11:33:42
 */
@Data
public class VO<T> {

    private Integer pageNo;

    private Integer pageSize;

    private Integer total;

    public Long getTotalPage(){
        return Math.round(new BigDecimal(total).divide(new BigDecimal(pageSize),3).doubleValue());
    }

    private List<T> data;
}
